package sz.com.postoffice.jxyzwgcase.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @ClassName DailyIncome
 * @Deacription 日收入表
 * @Author jmx
 * @Date 2020/11/12 11:19
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DailyIncome implements Serializable {
    private static final long serialVersionUID = 2862816122188495181L;

    public DailyIncome(DailyIncomeSummary dailyIncomeSummary) {
        if (dailyIncomeSummary != null) {
            id = dailyIncomeSummary.getId();
            userCode = dailyIncomeSummary.getUserCode();
            userName = dailyIncomeSummary.getUserName();
            standardMailCount = dailyIncomeSummary.getStandardMailCount();
            standardMailIncome = dailyIncomeSummary.getStandardMailIncome();
            fragmentedMailCount = dailyIncomeSummary.getFragmentedMailCount();
            fragmentedMailIncome = dailyIncomeSummary.getFragmentedMailIncome();
            expressCount = dailyIncomeSummary.getExpressCount();
            expressIncome = dailyIncomeSummary.getExpressIncome();
            dailyDelivery = dailyIncomeSummary.getDailyDelivery();
            dailyVisit = dailyIncomeSummary.getDailyVisit();
            statDate = dailyIncomeSummary.getStatDate();
            deptCode= dailyIncomeSummary.getDeptCode();
            isVacation = dailyIncomeSummary.getIsVacation();
        }
    }

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("收寄员code")
    private String userCode;

    @ApiModelProperty("收寄员姓名")
    private String userName;

    @ApiModelProperty("标准快递件数")
    private Integer standardMailCount;

    @ApiModelProperty("标准快递收入")
    private Double standardMailIncome;

    @ApiModelProperty("散件件数")
    private Integer fragmentedMailCount;

    @ApiModelProperty("散件收入")
    private Double fragmentedMailIncome;

    @ApiModelProperty("快递件数")
    private Integer expressCount;

    @ApiModelProperty("快递收入")
    private Double expressIncome;

    @ApiModelProperty("当日走访客户数")
    private Integer dailyVisit;

    @ApiModelProperty("当日投递总数")
    private Integer dailyDelivery;

    @ApiModelProperty("统计日期")
    private String statDate;

    @ApiModelProperty("部门code")
    private String deptCode;

    @ApiModelProperty("ado_id")
    private String adoId;

    @ApiModelProperty("是否休假")
    private Integer isVacation;
}
